package com.bank.base;
import javax.servlet.http.HttpServletRequest;
public class RequestSupport {
	private static ThreadLocal<HttpServletRequest> tlLocalRequest = new ThreadLocal<HttpServletRequest>();

	/**
	 * 保存当前请求对象
	 */
	public static void setLocalRequest(HttpServletRequest request) {
		tlLocalRequest.set(request);
	}

	/**
	 * 获取当前请求对象
	 */
	public static HttpServletRequest getLocalRequest() {
		return tlLocalRequest.get();
	}
	
	

}
